package com.qili.mapper.zx;

import com.qili.base.mapper.BaseMapper;
import com.qili.entity.supervisor.SupervisorProjectStage;
import com.qili.entity.supervisor.dto.SupervisorProjectStageDTO;
import com.qili.entity.zx.ZxProjectStage;
import com.qili.entity.zx.dto.ZxProjectStageDTO;

import java.util.List;

/**
 * @author zhaoyongke
 * @date 2020/11/2  项目阶段
 * @description
 */
public interface ZxProjectStageMapper extends BaseMapper<ZxProjectStage,String> {


    List<ZxProjectStageDTO> selectProjectStage(ZxProjectStageDTO dto);
    /**
    * @Author:zhaoyongke
    * @Description: 查询最大排序编号
    * @param dto
    * @Date:11:16 2021/1/8
    */
    Integer selectProjectStageMaxOrderNum(ZxProjectStageDTO dto);
    /**
     * @Author:Zhangshuo
     * @Description:根据项目ID删除
     * @param ids
     * @Date:20:33 2020-12-11
     */
    int deleteByProjectIds(String[] ids);

    int insert(ZxProjectStage zxProjectStageDTO);

    int getNotFinishedStageCount(ZxProjectStage stage);
}
